home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / src / mm / const.h < prev    next >
Text File  |  1990-07-15  |  990b  |  28 lines

  1. /* Constants used by the Memory Manager. */
  2.  
  3. #define ZEROBUF_SIZE    1024    /* buffer size for erasing memory */
  4.  
  5. /* Size of MM's stack depends mostly on do_exec(). */
  6. #if (ZEROBUF_SIZE > MAX_PATH)
  7. #define MM_STACK_BYTES    (ARG_MAX + ZEROBUF_SIZE + 192 *sizeof (char *))
  8. #else
  9. #define MM_STACK_BYTES    (ARG_MAX + MAX_PATH + 192 * sizeof (char *))
  10. #endif
  11.  
  12. #define NO_MEM (phys_clicks)0    /* returned by alloc_mem() with mem is up */
  13.  
  14. /*DEBUG*/
  15. /* PAGE_SIZE should be SEGMENT_GRANULARITY and MAX_PAGES MAX_SEGMENTS.
  16.  * The 386 segment granularity is 1 for segments smaller than 1M and 4096
  17.  * above that.  This is not handled properly yet - assume small programs.
  18.  */
  19. #if (CHIP == INTEL && !INTEL_32BITS)
  20. #define PAGE_SIZE      16    /* how many bytes in a page (s.b.HCLICK_SIZE)*/
  21. #define MAX_PAGES       4096    /* how many pages in the virtual addr space */
  22. #endif
  23.  
  24. #define HDR_SIZE      32    /* # bytes in the exec file header */
  25. #define printf        printk
  26.  
  27. #define INIT_PID       1    /* init's process id number */
  28.